#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    int number[110];
    
    for (int i = 0; i < n; i++)
    {
        cin >> number[i];
    }
    int m;
    cin >> m;
    int total=0;
    for (int i = 0; i < n; i++)
    {
        if (number[i] == m)
        {
            total++;
        }
    }
    cout << total;

    return 0;
}